package com.example.lay.service;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;

/**
 * Created by Lay on 2014/12/9.
 */
public class MyService extends Service {
    @Override
    public IBinder onBind(Intent intent) {
        return null;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        System.out.println("onCreated");
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
        System.out.println("onDestoryed");
    }

    @Override
    public boolean onUnbind(Intent intent) {
        return super.onUnbind(intent);
    }

    @Override
    public int onStartCommand(Intent intent, int flags, int startId) {
        System.out.println("onStarted");
        super.onStartCommand(intent, flags, startId);
        return START_STICKY;

    }
}
